<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $html->charset('utf8'); ?>
<title><?php echo $title_for_layout; ?></title>
<?php echo $html->css(array('layout', 'style')); ?>
<?php
    if($session->check('Auth.User.theme'))
        $theme = $session->read('Auth.User.theme').'/jquery-ui-1.7.2.custom';
    else
        $theme = 'ui-lightness/jquery-ui-1.7.2.custom';
    echo $html->css(array('button', $theme)); ?>
<?php echo $scripts_for_layout; ?>
</head>

<body>

<div class="header">
    <div class="headerlink">
      <div class="mainlink">
        <ul>
          <li><?php echo $html->link('首页', '/'); ?></li>
          <li>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
          <li><?php echo $html->link('热门', '/ftpfiles/hotfiles'); ?></a></li>
          <li>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
          <li><a href="#">其他</a></li>
        </ul>
      </div>
      <div class="userlink">
        <?php 
            if(!$session->check('Auth.User'))
                echo $this->element('login'); 
            else{
                echo $this->element('logout',array("nickname" => $session->read('Auth.User.nickname')));
            }
        ?> 
      </div>
    </div>
</div>
	<!-- Here's where I want my views to be displayed --> 
	<?php echo $content_for_layout ?>   
	<!-- Add a footer to each displayed page --> 

<div class="footer">@power by ftpman</div>

</body>
</html>
 
